package testing;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import model.Employee;
import dao.EmployeeDAO;

public class DeleteEmployee {
	public static void main(String[] args) {
		EntityManagerFactory emf = Persistence
		.createEntityManagerFactory("employee");
		
		EmployeeDAO empDAO = new EmployeeDAO();
		
		empDAO.setEntityManagerFactory(emf);
		
		Employee e = empDAO.findByID(25);
		empDAO.delete(e);
	}
}
